package com.ctg.itrdc.imageconsole.data.dao.impl;

import org.springframework.stereotype.Component;

import com.ctg.itrdc.imageconsole.data.dao.IAutoscalePolicyDao;
import com.ctg.itrdc.imageconsole.data.entity.AutoscalePolicy;
import com.ctg.itrdc.paspsdk.data.dao.impl.BaseDaoImpl;

@Component("autoscalePolicyDao")
public class AutoscalePolicyDaoImpl extends BaseDaoImpl implements IAutoscalePolicyDao{

	@Override
	public AutoscalePolicy selectById(Long id) {
		AutoscalePolicy autoscalePolicy = new AutoscalePolicy();
		autoscalePolicy.setId(id);
		return super.selectByPrimaryKey(autoscalePolicy);
	}

	@Override
	public void deleteById(Long id) {
		AutoscalePolicy autoscalePolicy = new AutoscalePolicy();
		autoscalePolicy.setId(id);
		super.deleteByPrimaryKey(autoscalePolicy);		
	}

	
	
	
	
}
